<%-- 
    Document   : listTransaction
    Created on : Oct 31, 2011, 11:07:00 PM
    Author     : Tunp
--%>

<%@ include file="/WEB-INF/jsp/include.jsp" %> 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>List Transactions</title>
    </head>
    <body>
        <h1>List ${translist} Transaction</h1>
        <form:form method="POST">
        <input type="radio" name="listtranstype" value="fraud" checked="${(transmode)?'checked':''}">Fraud list</input>
        <input type="radio" name="listtranstype" value="normal" checked="${(transmode)?'':'checked'}">Normal list</input>
        <br/>
        <select name="search_col">
                <option value="transactionId">Transaction Id</option>
                <option value="cardnumber">Card number</option>
        </select>
        <input type="text" id="search" name="search_text" maxlength="100"/>
        <input type="submit" name="search" value="Search"></input>
        
        <table style="border: solid chocolate">
            <tr>
                <th>
                    <b>Transaction Id </b>
                </th>
                <th>
                    <b>Transaction Type:</b>
                </th>
                <th>
                    <b>Order Info Id:</b>
                </th>
                <th>
                    <b>Card Number: </b>
                </th>
                <th>
                    <b>Merchant Id:</b>
                </th>
                <th>
                    <b>Amount:</b>
                </th>
                <th>
                    <b>Response code:</b>
                </th>
                <th>
                    <b>List fraud check: </b>
                </th>
                <th></th>
            </tr>
            <c:forEach var="transac" items="${lstTrans}" >
            <tr>
                <td>
                    ${transac.transactionId}
                </td>
                <td>
                    ${transac.transactionType}
                </td>
                <td>
                    ${transac.orderInfoId}
                </td>
                <td>
                    ${transac.cardnumber}
                </td>
                <td>
                    ${transac.merchantCode}
                </td>
                <td>
                    ${transac.amount}
                </td>
                <td>
                    ${transac.responseCode}
                </td>
                <td>
                    ${transac.fraudStandardCheck}
                </td>
                <td>
                    <a href="listtransaction.htm?detailId=${transac.id}"><b> Detail </b> </a>
                </td>
            </tr>
            </c:forEach>
        </table>
                <a href="index.htm"><b> Back to index </b> </a>
        </form:form>
    </body>
</html>


